<?php
require_once "../../vendor/workerman/workerman/Autoloader.php";
use \Workerman\Worker;

$http_work = new Worker('websocket://0.0.0.0:9999');
$http_work->onMessage = function ($connect,$data){
    echo "来自客户端消息==".$data.PHP_EOL;
    $connect->send("hello workman====".$data);
};
Worker::runAll();